<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
        <div th:fragment="top">
            <script th:src="@{/static/js/jquery-3.2.1.min.js}"></script>
            <script th:src="${#httpServletRequest.getContextPath()}+'/static/scripts/common/xtcommon.js'"></script>
            <div class="layui-header">
                <div class="layui-logo">自动部署系统</div>
                <ul class="layui-nav layui-layout-right">
                    <li class="layui-nav-item">
                        <a href="javascript:;" th:text=" ${session.userLogin.username}">
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a th:href="@{/logout}">退出</a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <div th:fragment="left">
            <div class="layui-side layui-bg-black">
                <div class="layui-side-scroll">
                    <ul class="layui-nav layui-nav-tree" lay-filter="test">
                        <li class="layui-nav-item">
                            <a th:href="@{/index}">升级部署</a>
                        </li>
                        <div th:if='${session.userLogin.roleName == "root"}' >
                        <li class="layui-nav-item">
                            <a th:href="@{/dep/versionsIndex}">版本列表</a>
                        </li>
                        <li class="layui-nav-item">
                            <a th:href="@{/dbBackup/index}">数据库备份</a>
                        </li>
                        <li class="layui-nav-item">
                            <a th:href="@{/log/index}">日志下载</a>
                        </li>
                        </div>
                    </ul>
                </div>
            </div>
        </div>
</body>
</html>